﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="iFrameAdmin_EditSurfaceGroup.aspx.cs" Inherits="iFrameAdmin_Group_EditSurfaceGroup" %>

<%@ Register src="Ctl/ctlSideLst.ascx" tagname="ctlSideLst" tagprefix="uc2" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table style="width: 100%;">
    <tr>
        <td style ="width:25%;text-align :left" >
        <asp:UpdatePanel ID="updStatus" runat ="server" UpdateMode="Conditional"  >
        <ContentTemplate >
         <asp:Label ID=lblClientStatus  CssClass ="<%# GetStateVisible() %>" runat="server" 
        Text="Есть несохраненные данные" Font-Bold="True" Font-Size="XX-Small" 
        ForeColor="#FF5050"></asp:Label>
        </ContentTemplate>
        </asp:UpdatePanel>
        </td >
        <td "width:25%;text-align :left" >
        </td>        
        <td style ="text-align :right ">
        </td>
        <td style ="text-align :right;	width="160px">
        <asp:Button ID=Button1 runat="server" Text="К списку"   CssClass ="btn"  
                Height="22px" />        
        </td>
        
    </tr>
    
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
  
    <asp:UpdatePanel ID="updCommonInfo" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="TblCaption" 
                onclick="CaptionToggle('body_CommonInfo','Caption_CommonInfo');" 
                style="width:100%; height :25px">
                <table style="width:100%;">
                    <tr>
                        <td ID="Caption_CommonInfo" class="ArrowDown">
                            &nbsp;</td>
                        <td>
                            Общая информация &nbsp;                            
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </div>
            <div ID="body_CommonInfo" style="width:100%">
                <table cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr ID="trCommonInfo">
                        <td width="25%">
                            <table cellpadding="2" cellspacing="0" style="width:100%;">
                                <%--GID--%>
                                <tr>
                                    <td width="25%">
                                        &nbsp;</td>
                                    <td class="grd_td_item_caption" style="width:25%">
                                        Наименование:
                                        <asp:RequiredFieldValidator ID="txtNameValidator1" runat="server" 
                                            ControlToValidate="txtName" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="grd_td_item">
                                        <asp:TextBox ID="txtName" runat="server" CssClass="TextBox" Text =<%# SurfaceGroup.Name %>
                                            Width="99%"></asp:TextBox>
                                    </td>
                                </tr>                                
                                <tr>
                                    <td style="vertical-align :top " width="25%">
                                    </td>
                                    <td class="grd_td_item_caption" style="width:25%;vertical-align :top">
                                        Дополнительно:</td>
                                    <td class="grd_td_item">
                                        <asp:TextBox ID="txtComment" runat="server" CssClass="TextBox" Height="47px" 
                                             Text =<%# SurfaceGroup.Description %> TextMode="MultiLine" Width="99%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%">
                                        &nbsp;</td>
                                    <td style="width:25%">
                                        &nbsp;</td>
                                    <td style="text-align :right ">
                                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                            <ContentTemplate>
                                                <asp:Button ID="btnSaveCommonInfo" runat="server" CssClass="btn_wizard" 
                                                     Text="Сохранить" onclick="btnSaveCommonInfo_Click" />
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:Panel runat ="server" Width="100%" Visible =<%# !IsNewRecord %>>    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate >        
        <div class="TblCaption" 
                onclick="CaptionToggle('body_SurfaceList','Caption_SurfaceList');" 
                style="width:100%; height :25px">
                <table style="width:100%;">
                    <tr>
                        <td ID="Caption_SurfaceList" class="ArrowDown">
                            &nbsp;</td>
                        <td>
                            Стороны &nbsp;                            
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </div>
        <div ID="body_SurfaceList" style="width:100%">
        <div id="divHead"   class ="miniRating" >               
        <table style="width: 100%;" cellpadding ="0" cellspacing ="2">
        <tr>
        <td style ="width :235px">
            <asp:TextBox ID="txtSearch" runat="server" Text =<%# SearhValue %> CssClass="TextBox"></asp:TextBox>
        </td>
        <td style ="width:8px">
            &nbsp
        </td>
        <td>
            
            <asp:ImageButton ID=btnFind runat="server"  
                ImageUrl="~/images/search_button.gif"  
                ToolTip="Поиск" onclick="btnFind_Click"/>
        </td>
        
        <td style ="text-align :right ">        
            
            
        </td>        
        <td style ="text-align :center; width :50px ">        
            <asp:Button ID="Button4" runat="server" 
               Text=<%# GetSaveButtontext()  %> 
             onclick="BtnSave_Click"  CssClass ="btn" Font-Bold ="true"   />
        </td>
    </tr>    
        </table>
            
        <uc2:ctlSideLst ID="ctlSideLst1"     ShowShedule ="false"  runat="server" />
</div>
</div>         
</ContentTemplate>
</asp:UpdatePanel> 
</asp:Panel> 

    

</asp:Content>

